package com.yuerlive.rainbow.module.main;

import com.yuerlive.rainbow.R;
import com.yuerlive.rainbow.base.BaseActivity;
import com.yuerlive.rainbow.module.login.LoginWayActivity;
import com.yuerlive.rainbow.utils.UserProxy;

/**
 * Created by xiaoyi on 2017/6/15.
 */

public class StartActivity extends BaseActivity {
    @Override
    protected int getLayoutId() {
        return R.layout.activity_start;
    }

    @Override
    protected void initViews() {
        if (UserProxy.getUser() == null) {
            jumpToActivity(LoginWayActivity.class);
        } else {
            jumpToActivity(MainActivity.class);
        }
        finish();
    }

}
